<?php
/**
 * Zhub - A PHP Framework For API Developer
 *
 * This file is part of the Zhub package.
 *
 * (c) YiLong Fan <fantiq@163.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @author fanyilong <fantiq@163.com>
 * @copyright 2017 fanyilong. All rights reserved.
 * @package Zhub
 * @date 18-3-1
 */

namespace Zhub\Prototype\Variable;


use Zhub\DataStruct\Enum;

class TypeEnum extends Enum
{
    const VOID   = 0;

    const NULL   = 1;

    const BOOL   = 2;

    const INT    = 3;

    const FLOAT  = 4;

    const STRING = 5;

    const ARRAY  = 6;

    const CLAZZ  = 7;

    const SOURCE = 8;

    public static function initialize(): array
    {
        return [
            self::VOID   => 'void',
            self::NULL   => 'null',
            self::BOOL   => 'bool',
            self::INT    => 'int',
            self::FLOAT  => 'float',
            self::STRING => 'string',
            self::ARRAY  => 'array',
            self::CLAZZ  => 'clazz',
            self::SOURCE => 'source',
        ];
    }
}